package com.example.miaosha.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.miaosha.entity.MiaoShaGoods;
import com.example.miaosha.vo.MiaoShaGoodsVo;

import java.util.List;

/**
 * 秒杀商品service接口
 * @author kangnan
 * @date 2021/5/21 0:54
 **/
public interface IMiaoShaGoodsService extends IService<MiaoShaGoodsVo> {

    /**
     * 查询所有秒杀商品
     * @return
     */
    public List<MiaoShaGoodsVo> listAll();

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    public MiaoShaGoods findById(Integer id);
}
